package com.module.organization.dao;

import org.hibernate.Session;

import base.dao.GenericHibernateDao;

import com.module.organization.vo.EntBind;

public class EntBindDao extends GenericHibernateDao<EntBind, String> {

	private EntBindDao() {
	}

	private static EntBindDao dao;

	public synchronized static EntBindDao getInstance() {
		if (dao == null)
			dao = new EntBindDao();
		return dao;
	}
   public void deleteByEnterprizeId(Session session,String enterprizeId){
	   String del="delete from EntBind where enterprizeId='"+enterprizeId+"'";
   	   this.deleteByQuery(session,del);
   }
}
